<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/html/init.jsp"%>
<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui"%>

<portlet:actionURL var="insertSubjectOpenByFacultyURL">
	<portlet:param name="action" value="insertSubjectOpenByFaculty" />
</portlet:actionURL>

<aui:form action="${insertSubjectOpenByFacultyURL}" method="post">
	<aui:select name="subjectOpen" label="Môn học">
		<c:forEach items="${listSubject}" var="s">
			<aui:option value="${s.idSubject}">
					${s.nameSubject}
			</aui:option>
		</c:forEach>
	</aui:select>
	<aui:select name="teacherOpen" label="Giảng viên">
		<c:forEach items="${listTeacher}" var="t">
			<aui:option value="${t.idTeacher}">
					${t.nameTeacher}
			</aui:option>
		</c:forEach>
	</aui:select>
	<aui:select name="roomOpen" label="Phòng">
		<c:forEach items="${listRoom}" var="r">
			<aui:option value="${r.idRoom}">
					${r.nameRoom}
			</aui:option>
		</c:forEach>
	</aui:select>
	<aui:select name="classOpen" label="Lớp">
		<c:forEach items="${listClassSubject}" var="c">
			<aui:option value="${c.idClass}">
					${c.nameOfClass}
			</aui:option>
		</c:forEach>
	</aui:select>
	<aui:select name="lessonOpen" label="Tiết học">
		<c:forEach items="${listLesson}" var="l">
			<aui:option value="${l.idLesson}">
					${l.rankOfLesson}
			</aui:option>
		</c:forEach>
	</aui:select>
	<label>Ngày bắt đầu</label>
	<liferay-ui:input-date formName="boo" yearValue="2015" monthValue="2"
		dayValue="1" dayParam="d1" monthParam="m1" yearParam="y1" />
	<label>Ngày kết thúc</label>
	<liferay-ui:input-date formName="dates" yearValue="2015" monthValue="2"
		dayValue="2" dayParam="d2" monthParam="m2" yearParam="y2" />
	<c:forEach items="${listYear}" var="y">
		<aui:input name="yearOpen" value="${y.id}" type="hidden"></aui:input>
	</c:forEach>
	<aui:input type="submit" value="Create Subject Open" name=""></aui:input>
	<a href='<portlet:renderURL/>'>&laquo;Back</a>
</aui:form>